import Vue from 'vue'
import App from './App'
import kit from "./common/kit.js" ;
import form from "./common/form.js" ;
import './common/clipBoard.js';
import './common/chooseFile.js';

Vue.config.productionTip = false
Vue.config.silent = true

Vue.prototype.kit = kit ;
Vue.prototype.form = form ;

const allComponents = require.context( './components', false );
allComponents.keys().forEach( fileName => {
  const componentConfig = allComponents(fileName);
  const componentName = fileName.split('/').pop().replace(/\.\w+$/, '');
  Vue.component(
    componentName,
    componentConfig.default || componentConfig
  )
});

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
